<?php
    set_include_path('../../offline');
    require_once('functions.php');
    spl_autoload_register('generic_autoload');

    $pdo = new myPdo('mysql:host=localhost;dbname=associations', 'root', '7au864pq');
    Config::set_slot('root', 'http://associations-genlis/');
    add_css(Config::get_slot('root', '') . 'css/main.css');

    $associationmap = new Model_MapperAssociation("association", $pdo);
    $actualitemap = new Model_MapperActualite("actualite", $pdo);
    $adressemap = new Model_MapperAdresse("adresse", $pdo);
    $communemap = new Model_MapperCommune("commune", $pdo);
    $evenementmap = new Model_MapperEvenement("evenement", $pdo);
    $categoriemap = new Model_MapperCategorie("categorie", $pdo);
    $commentairemap = new Model_MapperCommentaire("commentaire", $pdo);
?>
